package javacvtest.sqladminserver.Controller;

import javacvtest.sqladminserver.DTO.SqlLogDTO;
import javacvtest.sqladminserver.VO.LogVO;
import javacvtest.sqladminserver.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/log")
public class LogController {

    @Autowired
    private LogService logService;

    @PostMapping("/getLog")
    public List<LogVO> getLog(@RequestBody SqlLogDTO sqlLogDTO){

        return  logService.getLog(sqlLogDTO);
    }
}
